<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>$page_title{echo lang($module.$method,'seo')} $settings['site_name']</title>
<meta name="keywords" content="$page_keyword" />
<meta name="description" content="$page_description" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="icon" href="/favicon.ico" href="/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/favicon.ico" href="/favicon.ico" type="image/x-icon" />
{template common/resources}
</head>  
<body id="body" data-spy="scroll" data-target=".subnav" data-offset="80" style="overflow-x: hidden;">
	<div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container" id="header">
          <a class="pull-left" href="{url pin/index}"><img src="{baseurl}assets/img/logo.png"/></a>
            <ul class="nav">
     		<li class="dropdown">
              <a href="{url pin/index}" class="dropdown-toggle" data-toggle="dropdown">{lang home} <b class="caret"></b></a>
              <ul class="dropdown-menu nav-category" style="padding-top: 10px;">
              	{loop $rootCategories $category}
                <li class="pull-left mb10">
                	<a href="{url pin/index?name=$category['category_name_en']}">
                		$category['category_name_cn']
					</a> 
				</li> 
               	{/loop}
              	<li class="divider mt10" style="clear: both;"></li>
                <li class="pull-left mb10 mediumtxt"><a href="{url pin/lastest}">{lang lastest_pin}</a></li>
                <li class="pull-left mb10 mediumtxt"><a href="{url pin/hot}">{lang hotest_pin}</a></li>
                <li class="pull-left mb10 mediumtxt"><a href="{url pin/share}">{lang home_share}</a></li>
                <li class="pull-left mb10 mediumtxt"><a href="{url pin/video}">{lang video}</a></li>                
                <li class="pull-left mb10 mediumtxt"><a href="{url pin/article}">{lang article}</a></li>
				<!--<li class="pull-left mb10 mediumtxt"><a href="{url pin/goods}">Shopping</a></li>-->
              </ul>
            </li>
	   		<li {if $mdl=='album'}class="active"{/if}><a href="{url album/index}">{lang album}</a><b></b></li>
            {if $settings['star_open']}
            <li {if $mdl=='star'}class="active"{/if}><a href="{url star/show}">{lang header_staruser}</a><b></b></li>
            {/if}
            {if $settings['store_open']}
            <li class="dropdown">
              <a href="{url store/index}" class="dropdown-toggle" data-toggle="dropdown">{lang header_goodshop} <b class="caret"></b></a>
              <ul class="dropdown-menu nav-category" style="padding-top: 10px;">
              	{loop $storecategories $category}
                <li class="pull-left mb10">
                	<a href="{url store/topics?cid=$category['category_id']}">
                		$category['category_name']
					</a>
				</li>
               	{/loop}
              </ul>
            </li>
            {/if}
            <li class="dropdown" id="square">
              <a href="#square" class="dropdown-toggle" data-toggle="dropdown">{lang square} <b class="caret"></b></a>
              <ul class="dropdown-menu">
                <!--<li><a href="{url group/listing}"><i class="icon-white icon-bullhorn"></i>{lang hobby_group}</a></li>
                <li><a href="{url topic/listing}"><i class="icon-white icon-list-alt"></i>{lang hot_topic}</a></li>
                <li class="divider"></li>-->
                <li><a href="{url user/facewall}"><i class="icon-white icon-th"></i>{lang facewall}</a></li>
              </ul>
            </li>
			{if $islogin}
	   		<li {if $module=='home'&&$method == 'focus'}class="active"{/if}><a href="{url home/share}">{lang my_home}</a><b></b></li>
    		{/if}
            </ul>
            <form class="navbar-search pull-left" action="{url search/pin}" method="post" enctype="application/x-www-form-urlencoded">
	           <input type="text" name="keyword" class="search-query span2" placeholder="{lang tip_search}"/>
	           <button class="icon-search nav-search" type="submit"></button>
	        </form>
	        {if $stylecolors}
	        <ul class="nav pull-left mr20">
	        	<li class="dropdown" id="languages"> 
	              <a href="#languages" class="dropdown-toggle" data-toggle="dropdown"><i class="headerico-switchstyle"></i></a>
	              <ul class="dropdown-menu no-minwidth" style="width: 50px;">
	              	{loop $stylecolors $stylecolor}
	                <li><a href="{url misc/switchcolor?theme=$theme&color=$stylecolor['name']}"><i class="headerico-style" style="background-color: $stylecolor['themecolor'];'"></i></a></li>
	                {/loop}
	              </ul>
	            </li>
	        </ul>
	        {/if}
	        {if !$islogin}
	        <a class="btn btn-info pull-right" href="javascript:void(0);" data-action="openLoginDialog" id="login_point">{lang login}</a>
	        <a class="btn btn-success pull-right" href="javascript:void(0);" data-action="openRegisterDialog">{lang register}</a>
	        {else}
	        <ul class="nav pull-right">
            <li><a href="{url share/post}" class="nav-pbg"><i class="pbg-puzzle"></i></a></li>
            <li><a href="{url home/alert}" class="nav-pbg"><i class="pbg-bell" id="alert_num_container"></i></a></li>
            <li><a href="{url home/message}" class="nav-pbg"><i class="pbg-message" id="message_num_container"></i></a></li>
            <li class="dropdown" id="menu1">
              <a href="{url home/timeline}" class="nav-pbg dropdown-toggle" data-toggle="dropdown"><img src="{avatar($cuser['uid'], 'middle')}" onerror="javascript:this.src = base_url + 'assets/img/avatar_middle.jpg';"/> <b class="caret"></b></a>
              <ul class="dropdown-menu">
                <!--<li><a href="{url home/timeline}"><i class="icon-white icon-user"></i>$cuser['nickname']</a></li>-->
                <li><a href="{url home/focus}"><i class="icon-white icon-home"></i>{lang my_home}</a></li>
                <li><a href="javascript:void(0);" data-action="openAvatar"><i class="icon-white icon-camera"></i>{lang avatar_setting}</a></li>
                <li class="divider"></li>
                <li><a href="{url home/basicsetting}"><i class="icon-white icon-cog"></i>{lang account_setting}</a></li>
                {if $isadmin}
            	<li><a href="{url admin/index}" target="_blank"><i class="icon-white icon-th-list"></i>{lang admin_console}</a></li>
            	{/if}
                <li><a href="{url user/logout}"><i class="icon-white icon-remove-circle"></i>{lang logout}</a></li>
              </ul>
            </li>
          </ul>
          {/if}
        </div>
      </div>
    </div>
<div class="content">
	<div class="content-inner">
	<div class="content-wrapper clearfix" id="content-wrapper">
	<div class="container">
	{if $sysperm['usergroup_key']=='waiting_verify'}
	<div class="alert"><button type="button" class="close" data-dismiss="alert">&times;</button>
	{lang tip_verify_email}
	</div>
	{/if}</div>

